package com.witte.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.witte.entity.User;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer no);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer no);
    
    User selectByName(String name);
    
    List<User> selectByRole(Integer role,Integer state);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
}